package com.example.seed.entity;

import jakarta.annotation.Nullable;
import org.babyfish.jimmer.sql.ManyToOne;
import org.babyfish.jimmer.sql.MappedSuperclass;

@MappedSuperclass
public interface DataScopeEntity {


    /**
     * 创建人
     *
     * @return {@link SysUser}
     */
    @ManyToOne
    @Nullable
    SysUser creator();

    /**
     * 创建人所在部门
     *
     * @return {@link SysDept}
     */
    @ManyToOne
    @Nullable
    SysDept creatorDept();
}
